﻿using Newtonsoft.Json.Linq;
using System;

namespace down2.db
{
    /// <summary>
    /// 返回自定义的目录结构数据（文件夹）
    /// </summary>
    public partial class folder : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var json = JObject.Parse( @"{
                    nameLoc: ""测试文件夹"",
                    fields: { auto: ""1"" },
                    files: [
                        { fileUrl: ""http://www.ncmem.com/images/ico-ftp.jpg"" },
                        { fileUrl: ""http://www.ncmem.com/images/ico-up.jpg"" }
                    ],
                    folders: [
                        {
                            nameLoc: ""图片1"",
                            files: [
                                { fileUrl: ""http://www.ncmem.com/images/ico-ftp.jpg"" },
                                { fileUrl: ""http://www.ncmem.com/images/ico-up.jpg"" },
                                { fileUrl: ""http://www.ncmem.com/images/ico-capture.jpg"" },
                                { fileUrl: ""http://www.ncmem.com/images/ico-imageuploader.gif"" },
                                { fileUrl: ""http://www.ncmem.com/images/ico-wordpaster.gif"" }
                            ],
                            folders: [
                                {
                                    nameLoc: ""软件"",
                                    files: [
                                        { fileUrl: ""http://res2.ncmem.com/res/images/edit-file.png"" }
                                    ]
                                }
                            ]
                        }
                    ]
                }");
            Response.AddHeader("Content-Type", "application/json");
            Response.Write(json);
        }
    }
}